//
//  DZWeichatAuthModel.h
//
//  Created by   on 15/6/2
//  Copyright (c) 2015 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

/*
 {
 "refresh_token" : "",
 "scope" : "",
 "unionid" : "",
 "expires_in" : 1,
 "access_token" : "",
 "openid" : ""
 }
 */

@interface DZWeichatAuthModel : NSObject <NSCoding, NSCopying>

@property (nonatomic, strong) NSString *refreshToken;
@property (nonatomic, strong) NSString *scope;
@property (nonatomic, strong) NSString *unionid;
@property (nonatomic, assign) double expiresIn;
@property (nonatomic, strong) NSString *accessToken;
@property (nonatomic, strong) NSString *openid;

+ (instancetype)modelObjectWithDictionary:(NSDictionary *)dict;
- (instancetype)initWithDictionary:(NSDictionary *)dict;
- (NSDictionary *)dictionaryRepresentation;

@end
